#include <stdio.h>

int main()
{
	float sum=0;
	int i=0,count=0; 
    int arr[20] = {0};
    for(i =0;i <20;i++)
    {
    	scanf("%d",&arr[i]);
    	if(arr[i] < 0)
    	  {
    	  	count++;
		  }
		  if(arr[i] >0)
	 	  {
	 		sum += arr[i];
		  } 
	}
 	printf("%d\n%.2f",count,sum/(20-count));
	
	return 0;
 } 
